package com.lovo.boot.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author luo
 * @description 班级传输实体
 * @date 2020/11/25 20:45
 */
@ApiModel(value = "班级传输实体")
@Data
public class ClassDTO implements Serializable {
    /**班级编号*/
    @ApiModelProperty(value = "班级编号")
    private String classId;
    /**班级名称*/
    @Size(min = 2,max = 20,message = "班级名称应该在2到20位之间")
    @ApiModelProperty(value = "班级名称")
    private String className;

}
